#ifndef POINTONSCREEN_H
#define POINTONSCREEN_H

#include <QWidget>
#include <QPoint>
#include <QMutex>
#include "Filter.h"

class PointOnScreen :
	public QWidget,
	public Filter
{
	Q_OBJECT

public:
	enum Inputs { INPUT_POINT_2D = 0 };

	PointOnScreen(int numberOfPoints = 1);
	~PointOnScreen();
	

	virtual void paintEvent(QPaintEvent *event);
	virtual QWidget *GetOutputWidget();

	void Process();

private:
	QList<QPoint> *inBuffer;
	QList<QPoint> *outBuffer;
	QMutex mutex;
};

#endif // POINTONSCREEN_H
